<template>
  <div>
    <button @click="arr">点击铺设crr数组</button>
    <p v-for="item,index in crr" :key="index">{{item}}</p>
  </div>
</template>

<script>
export default {
  data () {
    return {
      brr : [1, 0, 2, 0, 0, 0, 5],
      crr : [],
    }
  },
  methods:{
     arr(){
       this.brr.forEach((item,index,rr)=>{
         rr[index] = item * 2
         this.crr.push(rr[index])
    })
     },
  }
}
</script>

<style>

</style>